package com.cloud.bssp.admin.sysmenu.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cloud.bssp.admin.sysmenu.client.UserClient;
import com.cloud.bssp.admin.sysmenu.convert.SysMenuDoConvert;
import com.cloud.bssp.admin.sysmenu.dto.SysMenuDTO;
import com.cloud.bssp.admin.sysmenu.dto.UserDTO;
import com.cloud.bssp.admin.sysmenu.entity.SysMenuDO;
import com.cloud.bssp.admin.sysmenu.service.SysMenuService;
import com.cloud.bssp.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * SysMenu Controller控制器
 * </p>
 *
 * @author weirx
 * @since 2020-07-13
 */
@Api(tags = "测试Hystrix")
@RestController
@RequestMapping("/test")
public class TestController {

    /**
     * SysMenuService
     */
    @Autowired
    private UserClient userClient;


    /**
     * list列表
     * @return
     */
    @GetMapping("/list")
    public R list() {
        return userClient.list(new UserDTO());
    }

}
